<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="styles/style.css">
        <link rel="stylesheet" href="styles/theme/atom-one-dark.css">
        <title>例子30-ES6/7常用语法介绍</title>
    </head>

    <body>
        <pre>
            <code>
                // 例子30

                console.log(Object.is('foo', 'foo')); // true
                console.log(Object.is(1, 1)); // true
                console.log(Object.is({}, {})); // false
                console.log(Object.is(null, null)); // true
                console.log(Object.is(undefined, undefined)); // true
                console.log(Object.is(+0, -0)); // false
                console.log(Object.is(NaN, NaN)); // true

                console.log(+0 === -0); // true
                console.log(NaN === NaN); // false
            </code>
        </pre>
        <script src="scripts/libs/highlight.pack.js"></script>
        <script src="scripts/30.js"></script>
        <script>
            hljs.initHighlightingOnLoad();
        </script>
    </body>

</html>